/* =========================================
                    RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: #ffffff;
    color: #333;
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}


        .project-code {
            display: inline-block;
            background: #f0f0f0;
            color: #555;
            padding: 4px 14px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 600;
            font-family: monospace;
            direction: ltr;
            letter-spacing: 1px;
            margin-top: 5px;
        }
        .keywords {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }
        .keywords span {
            background: #f4f7fa; 
            color: #315b7d; 
            padding: 4px 14px;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 500;
        }

       /* =========================================
                    NAVBAR
        ========================================= */

        .navbar {

            position: fixed;

            top: 0;
            right: 0;
            left: 0;

            height: 72px;

            background: #ffffff;

            display: flex;

            align-items: center;

            justify-content: space-between;

            padding: 0 28px;

            box-shadow:
                0 8px 25px rgba(0, 0, 0, 0.07);

            z-index: 999;

        }


        /* =========================================
                    LOGO
        ========================================= */
		.logo {
    		width: 55px;
            
    		height: 55px;
            
            box-shadow:
                0 5px 15px rgba(0, 0, 0, 0.05);

    		align-items: center;
            
    		justify-content: center;

    		text-decoration: none;

            border-radius: 50%;

            background: #7fa5db;

            display: flex;

            transition: 0.35s;
		}

		.logo img {
    		width: 100%;
    		height: 100%;

    		object-fit: contain;

    		display: block;
		}


        .logo:hover {

            transform: scale(1.1);

        }
         .logo:active {

            transform: scale(0.9);

        }


        /* =========================================
                    MENU BUTTON
        ========================================= */

        .menu-btn {

            position: fixed;

            left: 20px;
            top: 9px;

            width: 53px;
            height: 53px;

            border: none;

            background: #7fa5db;

            display: flex;

            flex-direction: column;

            justify-content: center;

            align-items: center;

            gap: 6px;

            cursor: pointer;

            z-index: 1300;

            border-radius: 12px;

            box-shadow:
                0 5px 15px rgba(0, 0, 0, 0.1);

            transition: 0.3s;

        }


        .menu-btn:hover {

            transform: scale(1.1);

        }


        .menu-btn:active {

            transform: scale(0.9);

        }


        .menu-btn span {

            width: 28px;
            height: 3px;

            background: #333;

            border-radius: 20px;

            transition: 0.3s;

        }



        /* =========================================
                    SIDEBAR
        ========================================= */
/* =========================================
           VOICE BOX
========================================= */

.voice-box {
    width: 100%;
    margin: 30px 0;
    padding: 25px;
    background:#d6e0eeb3;;
    border: 1px solid #d6e0eeb3;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

    display: flex;
    align-items: center;
    gap: 22px;

    transition: 0.3s ease;
}

.voice-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}

.voice-icon {
    width: 65px;
    height: 65px;
    min-width: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4f4f4;
    border-radius: 16px;

    font-size: 30px;
}

.voice-content {
    flex: 1;
}

.voice-content h3 {
    margin: 0 0 7px;
    color: #172a3a;
    font-size: 20px;
    font-weight: 700;
}

.voice-content p {
    margin: 0 0 15px;
    color: #777;
    font-size: 14px;
}

.voice-content audio {
    width: 100%;
    max-width: 600px;
    height: 42px;
}


/* موبایل */

@media (max-width: 600px) {

    .voice-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px;
    }

    .voice-icon {
        margin: 0 auto;
    }

    .voice-content audio {
        width: 100%;
    }
}
        .sidebar {

            position: fixed;

            top: 0;

            left: -320px;

            width: 300px;

            height: 100vh;

            background: rgba(255, 255, 255, 0.95);

            backdrop-filter: blur(14px);

            box-shadow:
                8px 0 40px rgba(0, 0, 0, 0.15);

            transition:
                left 0.55s cubic-bezier(.22, 1, .36, 1);

            z-index: 1200;

            padding-top: 80px;

            overflow: hidden;

        }


        .sidebar.active {

            left: 0;

        }


        .sidebar h2 {

            text-align: center;

            color: #0b5ed7;

            font-size: 30px;

            margin-bottom: 45px;

        }


        .sidebar a {

            display: block;

            align-items: center;

            padding: 18px 35px;

            margin: 8px 18px;

            border-radius: 15px;

            font-size: 21px;

            font-weight: 600;

            color: #333;

			text-decoration:none;
            
            transition: 0.35s;

            opacity: 0;

            transform: translateX(-40px);
            

        }


        .sidebar.active a {

            opacity: 1;

            transform: translateX(0);

        }


        .sidebar.active a:nth-of-type(1) {

            transition-delay: 0.10s;

        }


        .sidebar.active a:nth-of-type(2) {

            transition-delay: 0.20s;

        }


        .sidebar.active a:nth-of-type(3) {

            transition-delay: 0.30s;

        }


        .sidebar a:hover {

            background:
                linear-gradient(
                    135deg,
                    #0b5ed7,
                    #4dabf7
                );

            color: white;

            transform:
                translateX(10px)
                scale(1.03);

            box-shadow:
                0 10px 25px rgba(13, 110, 253, 0.30);

        }


        /* CLOSEBTN*/

        .closebtn {

            position: absolute;

            top: 18px;
            right: 20px;

            width: 42px;
            height: 42px;

            display: flex;

            justify-content: center;
            align-items: center;

            border-radius: 50%;

            font-size: 30px;

            cursor: pointer;

            transition: 0.35s;

        }


        .closebtn:hover {

            background: #729ddb;

            color: white;

            transform: rotate(180deg);

        }


/* =========================================
                    OVERLAY
========================================= */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
                    PROJECT DETAIL
========================================= */
.project-detail {
    padding: 0 20px 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


.project-header {
    margin-top: 40px;
    padding: 75px 20px 45px;
    text-align: center;
    background: #f7f7f7;
    margin-bottom: 72px;
}


.project-header .class-badge {
    display: inline-block;
    background: #d3e1ee;
    color: #315b7d;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}


.project-header h1 {
    font-size: 40px;
    font-weight: 800;
    color: #172a3a;
    margin-bottom: 12px;
    line-height: 1.5;
}

.project-header .students {
    font-size: 23px;
    color: #172a3ac9;
    font-weight: 500;
}

.project-header .students span {
    color: #315b7d;
    font-weight: 600;
}

.project-header .teacher {
    font-size: 16px;
    color: #172a3ac9;
    margin-top: 8px;
}

.project-header .teacher span {
    color: #315b7d;
    font-weight: 600;
}

/* =========================================
                    POSTER BOX
========================================= */
.poster-box {
    background: #f7f7f7;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    margin-bottom: 40px;
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px dashed #172a3a37;
    border-radius: 28px;
    transition: 0.4s;
}

.poster-box:hover {
    border-color: #172a3adf;
    box-shadow: 0 20px 60px rgba(230, 90, 50, 0.2);
    transform: scale(1.01);
}

.poster-placeholder {
    text-align: center;
    color: #999;
    padding: 20px;
}

.poster-placeholder .icon {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.6;
}

.poster-placeholder h3 {
    font-size: 24px;
    color: #172a3adf;
    margin-bottom: 8px;
}

.poster-placeholder p {
    font-size: 16px;
    color: #aaa;
}

.poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
                    PROJECT INFO
========================================= */
.project-info-box {
    background:#d6e0eeb3;
    border-radius: 22px;
    padding: 35px;
    border: 1px solid #eeeeee;
    margin-bottom: 40px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.project-info-box h3 {
    font-size: 22px;
    color: #172a3a;
    margin-bottom: 15px;
    border-bottom: 3px solid #172a3ac9;
    padding-bottom: 10px;
    display: inline-block;
}

.project-info-box p {
    font-size: 17px;
    color: #555;
    line-height: 2;
    margin-top: 15px;
}

.project-info-box .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.project-info-box .info-item:last-child {
    border-bottom: none;
}

.project-info-box .info-item .label {
    font-weight: 600;
    color: #260c0c;
    min-width: 120px;
}

.project-info-box .info-item .value {
    color: #666;
}

/* =========================================
                    RATING SECTION
========================================= */
.rating-section {
    background: #d6e0eeb3;
    border-radius: 22px;
    padding: 40px 35px;
    margin-top: 10px;
    text-align: center;
    transition: 0.3s;
    margin-bottom: 1cqb;
}

.rating-section:hover {
    box-shadow: 0 10px 35px rgba(175, 185, 230, 0.15);
    transform: translateY(-2px);
}

.rating-section .star-icon {
    font-size: 40px;
    display: block;
}

.rating-section h3 {
    font-size: 24px;
    color: #172a3a;
    margin-bottom: 8px;
}

.rating-section .subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 25px;
}

.rating-btn {
    background: #f4f7fa; 
    color: #315b7d; 
    padding: 15px 34px; 
    border-radius: 999px; 
    font-size: 17px; 
    position: relative; 
    z-index: 2; 
    cursor: pointer;
    transition: 0.35s; 
    box-shadow: 0 6px 18px rgba(49, 91, 125, 0.22);
    margin-bottom: 25px;
}

.rating-btn:hover {
    background: #315b7d; 
    color: #ffffff; 
    transform: scale(1.05); 
    box-shadow: 0 6px 18px rgba(49, 91, 125, 0.22);
}

.rating-btn a {
    color: white;
    display: block;
}


/* =========================================
                    FOOTER
========================================= */
.footer {
    background: #2c3e50;
    color: white;
    padding: 35px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: auto;
}

.footer h3 {
    font-size: 30px;
    margin-bottom: 15px;
}

.footer p {
    color: #ddd;
    margin: 10px 0;
}

.footer-links {
    margin: 25px 0;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    font-size: 17px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #4dabf7;
}

.copyright {
    margin-top: 25px;
    font-size: 14px;
    color: #bbb;
}

/* =========================================
                    MOBILE
========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 0 18px;
    }
    .back-btn {
        font-size: 15px;
    }
    .back-btn::before {
        font-size: 18px;
    }
    .project-detail {
        padding: 20px 15px 40px;
    }
    .project-header h1 {
        font-size: 24px;
    }
    .project-header .students {
        font-size: 17px;
    }
    .poster-box {
        aspect-ratio: 4/3;
        border-width: 3px;
    }
    .poster-placeholder .icon {
        font-size: 60px;
    }
    .poster-placeholder h3 {
        font-size: 20px;
    }
    .project-info-box {
        padding: 25px 20px;
    }
    .project-info-box h3 {
        font-size: 19px;
    }
    .project-info-box p {
        font-size: 15px;
    }
    .project-info-box .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 15px 0;
    }
    .project-info-box .info-item .label {
        min-width: auto;
        font-size: 14px;
    }
    .project-info-box .info-item .value {
        font-size: 15px;
    }
    .rating-section {
        padding: 25px 20px;
    }
    .rating-section .star-icon {
        font-size: 38px;
    }
    .rating-section h3 {
        font-size: 20px;
    }
    .rating-btn {
        padding: 14px 35px;
        font-size: 16px;
    }
    .sidebar {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .project-header h1 {
        font-size: 20px;
    }
    .project-header .students {
        font-size: 14px;
    }
    .project-info-box {
        padding: 20px 15px;
    }
    .poster-box {
        aspect-ratio: 3/4;
        border-radius: 18px;
    }
    .poster-placeholder .icon {
        font-size: 50px;
    }
    .poster-placeholder h3 {
        font-size: 17px;
    }
    .poster-placeholder p {
        font-size: 13px;
    }
    .rating-section {
        padding: 20px 15px;
    }
    .rating-section .star-icon {
        font-size: 30px;
    }
    .rating-section h3 {
        font-size: 17px;
    }
    .rating-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}